﻿using System;
using System.Collections.Generic;
using System.Data.Entity;
using System.Data.Entity.ModelConfiguration.Conventions;
using System.Linq;
using System.Linq.Expressions;
using System.Web;

namespace HouseAgencySite.Models
{
    public class AgencyDBContext : DbContext
    {
        /// <summary>
        /// 城区
        /// </summary>
        public DbSet<Areas> Areas { get; set; }

        public DbSet<Files> Files { get; set; }

        public DbSet<HouseInfos> HouseInfos { get; set; }

        public DbSet<HtmlContents> HtmlContents { get; set; }

        public DbSet<Users> Users { get; set; }
        protected override void OnModelCreating(DbModelBuilder modelBuilder)
        {
            modelBuilder.Conventions.Remove<PluralizingTableNameConvention>();
        } 

       
    }
}